///This class sychronizes the world transform between Bullet rigid bodies and their accompanying Irrlicht nodes
class IrrPhysMotionState : public btDefaultMotionState
{
	irr::scene::ISceneNode*		m_irrNode;
	float						m_f32PhysWorldScaling;
public:

	//=== constructor ===//
	IrrPhysMotionState(irr::scene::ISceneNode* irrNode, float f32PhysWorldScaling = 1.0f );

	///synchronizes world transform from user to physics
	virtual void	getWorldTransform(btTransform& centerOfMassWorldTrans ) const;

	///synchronizes world transform from physics to user
	///Bullet only calls the update of worldtransform for active objects
	virtual void	setWorldTransform(const btTransform& centerOfMassWorldTrans);
};
